package com.chanta.server.persistence;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 * TODO Please comment this class..
 * 
 * @author Hakan Özdemir - Vendoo Inc.
 * @date 02.11.2013
 * 
 */
@PersistenceCapable
public class ItemImage {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent(serialized = "true")
	private ImageFile image;

	@Persistent
	private Item item;

	/**
	 * Getter for image.
	 * 
	 * @return image
	 */
	public ImageFile getImage() {
		return image;
	}

	/**
	 * Setter for image.
	 * 
	 * @param image
	 *            the image to set
	 */
	public void setImage(ImageFile image) {
		this.image = image;
	}

	/**
	 * Getter for item.
	 * 
	 * @return item
	 */
	public Item getItem() {
		return item;
	}

	/**
	 * Setter for item.
	 * 
	 * @param item
	 *            the item to set
	 */
	public void setItem(Item item) {
		this.item = item;
	}
}
